import service from "./index.js";
export function getCourseList(data) {
  return service.post("/client/listClientGrinding", data);
}
export function getgrindLessonslist(data) {
  return service.post("/client/listClientComment", data);
}
export function getCourseListDetil(data) {
  return service.get("/client/getClientGrinding", {
    params: data,
  });
}
export function uploadRecordingStatus(data) {
  return service.post("/client/uploadRecordingStatus", data);
}

export function getClientComment(data) {
  return service.get("/client/getClientComment", {
    params: data,
  });
}

// 获取mac地址
export function myMACAddress(data) {
  return service.get("/stream/myMACAddress", {
    params: data,
  });
}

// 开始录播
export function startRstpConvert(data) {
  return service.get("/stream/startRstpConvert", {
    params: data,
  });
}

//  停止录播
export function stop(data) {
  return service.get("/stream/stop", {
    params: data,
  });
}

// 获取最新版客户端
export function getNewVersionClinet(data) {
  return service.get("/client/getNewVersionClinet", {
    params: data,
  });
}

// 下载新版本客户端
export function downloadNewVersionClinet(data) {
  return service.get("/client/downloadNewVersionClinet", {
    params: data,
  });
}

// 获取客户端信息
export function getByMacAddress(data) {
  return service.get("/client/getByMacAddress", {
    params: data,
  });
}

//更新客户端清除天数
export function updateClearNumber(data) {
  return service.post("/client/updateClearNumber", data);
}
// 客户端在线状态上报
export function updateOnlineStatus(data) {
  return service.post("/client/updateOnlineStatus", data);
}